package nuc.wy;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

public class About extends Activity{
	private TextView palytoxinID;
	private TextView wangchao651ID;
	private ImageView palytoxinImage;
	private ImageView wangchao651Image;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
//		requestWindowFeature(Window.FEATURE_NO_TITLE);
		palytoxinID = (TextView) findViewById(R.id.palytoxinID);
		palytoxinImage = (ImageView) findViewById(R.id.palytoxin);
		wangchao651ID = (TextView) findViewById(R.id.wangchao651ID);
		wangchao651Image = (ImageView) findViewById(R.id.wangchao651);
		
		palytoxinID.setClickable(true);
		wangchao651ID.setClickable(true);
		palytoxinImage.setClickable(true);
		wangchao651Image.setClickable(true);
		
		palytoxinID.setOnClickListener(new palytoxinClick());
		palytoxinImage.setOnClickListener(new palytoxinClick());
		wangchao651ID.setOnClickListener(new wangchao651Click());
		wangchao651Image.setOnClickListener(new wangchao651Click());
		
		
	}
	class palytoxinClick implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Uri uri = Uri.parse("http://weibo.com/palytoxin");
			Intent weibo = new Intent(Intent.ACTION_VIEW, uri);   
			startActivity(weibo);
		}
		
	}
	class wangchao651Click implements OnClickListener{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Uri uri = Uri.parse("http://weibo.com/wangchao651");
			Intent weibo = new Intent(Intent.ACTION_VIEW, uri);   
			startActivity(weibo);
			
		}
		
	}

}
